import React, { Component, PropTypes } from 'react';
import style from './MainPanel.css';
import MenuPanel from './MenuPanel';

export default class MainPanel extends Component {
  static propTypes = {
    title: PropTypes.string.isRequired,
  };

    render() {
      const { title } = this.props;
      return (
        <div className={ style.MainPanel }>
          <div className={ style.Title }>
            { title }
          </div>
          <MenuPanel />
        </div>
      );
    }
}
